#include "Viewer.h"

#include <cxcore.h>
#include <highgui.h>

#ifdef _DEBUG
#pragma comment (lib, "cxcore210d.lib")
#pragma comment (lib, "highgui210d.lib")
#else
#pragma comment (lib, "cxcore210.lib")
#pragma comment (lib, "highgui210.lib")
#endif

void Viewer::ShowImage(string path)
{
	IplImage* img = cvLoadImage(path.c_str());

	cvNamedWindow("image");

	cvShowImage("image", img);

	cvWaitKey();

	cvReleaseImage(&img);
}